package com.chatdating.service.impl;

import com.chatdating.entity.ChatSessionUser;
import com.chatdating.entity.Session;
import com.chatdating.mapper.SessionMapper;
import com.chatdating.service.SessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SessionServiceImpl implements SessionService {

    @Autowired
    private SessionMapper sessionMapper;

    @Override
    public Integer save(Session session) {
        Integer save = sessionMapper.save(session);
        return save;
    }

    @Override
    public void isnert(ChatSessionUser chatSessionUser) {
        sessionMapper.insert(chatSessionUser);
    }

}
